export function hasProps(data: any) {
  if (Array.isArray(data)) {
    return Boolean(data.length)
  } else if (data.constructor === Object) {
    return Boolean(Object.getOwnPropertyNames(data).length)
  }
}
